//. 定义一个用户类，存放用户的账号、用户名和密码属性；定义有参构造函数，对类的属性进行初始化
// . 在用户类中定义一个方法输出当前用户对象的账号、用户名和密码的信息；然后在主方法调用输出；
public class User {
    private int id;
    private String user;
    private String password;

    public User(int id, String user, String password) {
        this.id = id;
        this.user = user;
        this.password = password;
    }

    public void display() {
        System.out.println("id:" + this.id + ";user:" + this.user + ";password:" + this.password);
    }
}

class TestUser {
    public static void main(String[] args) {
        User user = new User(1234567890, "张三", "qwertyuiop");
        user.display();
    }
}